function [ s ] = randomPuzzle( )
% http://www.cs.bham.ac.uk/~mdr/teaching/modules04/java2/TilesSolvability.html
    s = randperm(9);
    
    while ~solvablePuzzle(s)
        s = randperm(9);
    end
end

